package com.mallcloud.mall.mall.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mallcloud.mall.mall.api.entity.MallPointsProductStockRecordModel;
import com.mallcloud.mall.mall.api.entity.vo.PointProductStockRecordVO;
import com.mallcloud.mall.mall.mapper.MallPointsProductStockRecordMapper;
import com.mallcloud.mall.mall.service.MallPointsProductStockRecordService;
import org.springframework.stereotype.Service;

/**
 * 积分商品库存记录
 */
@Service
public class MallPointsProductStockRecordServiceImpl extends ServiceImpl<MallPointsProductStockRecordMapper, MallPointsProductStockRecordModel> implements MallPointsProductStockRecordService {

	@Override
	public PointProductStockRecordVO getInfo(Long id) {
		MallPointsProductStockRecordModel model = this.getById(id);
		return BeanUtil.copyProperties(model, PointProductStockRecordVO.class);
	}
}
